package com.ruoyi.workbench.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 叶子单元对象 wb_leaf_unit
 *
 * @author hanjiafeng
 * @date 2021-02-24
 */
public class WbLeafUnit extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long unitId;

    /**
     * 父节点id
     */
    private Long parentId;

    /**
     * 单元名称
     */
    private String unitName;

    /**
     * 祖先节点id
     */
    private String ancestorIds;

    /**
     * 排序
     */
    private Long orderNum;

    /**
     * 0可用，1不可用
     */
    private Long status;

    /**
     * 0正常，1删除
     */
    private Long delFlag;

    public Long getUnitId() {
        return unitId;
    }

    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getAncestorIds() {
        return ancestorIds;
    }

    public void setAncestorIds(String ancestorIds) {
        this.ancestorIds = ancestorIds;
    }

    public Long getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Long orderNum) {
        this.orderNum = orderNum;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Long delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("unitId", getUnitId())
                .append("parentId", getParentId())
                .append("unitName", getUnitName())
                .append("ancestorIds", getAncestorIds())
                .append("orderNum", getOrderNum())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
